package com.ostrich.module_player

import androidx.lifecycle.LiveData
import com.ostrich.library_net.BaseResponse
import com.ostrich.module_player.entity.PlayerEntity

import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @Author : yaotianxue
 * @Time : On 2023/11/3 14:05
 * @Description : PlayerApi
 */
interface PlayerApi {
    //视频的相关推荐
    @GET("/api/v4/video/related")
    fun relate(@Query("id") id:Int):LiveData<BaseResponse<MutableList<PlayerEntity>>>
    //视频的相关评论
    @GET("/api/v2/replies/video")
    fun comment(@Query("videoId") videoId:Int):LiveData<BaseResponse<MutableList<PlayerEntity>>>
}